
import { getHttp, postHttp, deleteHttp, putHttp } from '../utils/http'
//房源数据
export const getHouse = (params) => {
    return getHttp('/houseAgent', params)
}
//求租
export const getpur = (params) => {
    return getHttp('/purAgent', params)
}
//——————————————————————————————团购——————————————————————-————
//获取团购信息
export const getgroup = () => {
    return getHttp('/groupAgent')
}
//删除团购信息
export const delgroup = (params) => {
    return deleteHttp('/groupAgent', params)
}
//获取团购详情信息
export const getgroupDetail = (params) => {
    return getHttp('/groupDetail', params)
}
//更改是否开团
export const setstatus = (params) => {
    return postHttp('/groupAgent', params)
}

//创建团购
export const putgroup = (params) => {
    return putHttp('/groupAgent', params)
}

